Problem Note 34865: Reading an empty Input Stream causes the SAS® Stored Process Server to stop responding
If a SAS® Stored Process attempts to read from an Input Steam that contains no data, the SAS® Stored Process Server will stop responding.
For example, if a SAS Stored Process has an Input Stream called webin and the client application does not provide any data in this Input Stream when it invokes the SAS Stored
Process, then the following code will cause the Stored Process Server to stop responding.
data _null_;
infile webin; /* Input Stream is empty */
input;
list;
run;
You can avoid this problem by using the READTIMEOUT option on the INFILE
statement for the input stream. For example:
%macro read_stream(stream_fileref);
data _null_;
infile &stream_fileref readtimeout=10;
run;
libname &stream_fileref xml;
proc copy in=&stream_fileref out=work;
run;
libname &stream_fileref clear;
%mend read_stream;
%read_stream(webin);
An Input Stream can be specified using the SAS® Management Console.
When running SAS Management Console in SAS® 9.1.3, perform the following steps:
- Select the Properties window for the SAS Stored Process.
- Select the Execution tab in the Properties window.
- Click the Streams button.
When running SAS Management Console in SAS® 9.2, perform the following steps:
- Select the Properties window for the SAS Stored Process.
- Select the Data tab in the Properties window.
- Click the New button.
- Specify the Input Stream on the New Data Source window.
Operating System and Release Information
SAS System | SAS Integration Technologies | Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
z/OS | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft® Windows® for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
If a SAS® Stored Process attempts to read from an Input Steam that contains no data, the Stored Process Server will stop responding.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-02-25 13:39:37 |
Date Created: | 2009-02-18 16:19:24 |